home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / rexx / errors.h next >
C/C++ Source or Header  |  1993-10-15  |  4KB  |  77 lines

  1. #ifndef REXX_ERRORS_H
  2. #define REXX_ERRORS_H
  3. /*
  4. **    $VER: errors.h 1.4 (8.11.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Definitions for ARexx error codes
  8. **
  9. **    (C) Copyright 1987,1988,1989,1990 William S. Hawes
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #define ERRC_MSG  0               /*  error code offset           */
  15. #define ERR10_001 (ERRC_MSG+1)           /*  program not found           */
  16. #define ERR10_002 (ERRC_MSG+2)           /*  execution halted           */
  17. #define ERR10_003 (ERRC_MSG+3)           /*  no memory available           */
  18. #define ERR10_004 (ERRC_MSG+4)           /*  invalid character in program*/
  19. #define ERR10_005 (ERRC_MSG+5)           /*  unmatched quote           */
  20. #define ERR10_006 (ERRC_MSG+6)           /*  unterminated comment        */
  21. #define ERR10_007 (ERRC_MSG+7)           /*  clause too long           */
  22. #define ERR10_008 (ERRC_MSG+8)           /*  unrecognized token           */
  23. #define ERR10_009 (ERRC_MSG+9)           /*  symbol or string too long   */
  24.  
  25. #define ERR10_010 (ERRC_MSG+10)        /*  invalid message packet      */
  26. #define ERR10_011 (ERRC_MSG+11)        /*  command string error        */
  27. #define ERR10_012 (ERRC_MSG+12)        /*  error return from function  */
  28. #define ERR10_013 (ERRC_MSG+13)        /*  host environment not found  */
  29. #define ERR10_014 (ERRC_MSG+14)        /*  required library not found  */
  30. #define ERR10_015 (ERRC_MSG+15)        /*  function not found           */
  31. #define ERR10_016 (ERRC_MSG+16)        /*  no return value           */
  32. #define ERR10_017 (ERRC_MSG+17)        /*  wrong number of arguments   */
  33. #define ERR10_018 (ERRC_MSG+18)        /*  invalid argument to function*/
  34. #define ERR10_019 (ERRC_MSG+19)        /*  invalid PROCEDURE           */
  35.  
  36. #define ERR10_020 (ERRC_MSG+20)        /*  unexpected THEN/ELSE        */
  37. #define ERR10_021 (ERRC_MSG+21)        /*  unexpected WHEN/OTHERWISE   */
  38. #define ERR10_022 (ERRC_MSG+22)        /*  unexpected LEAVE or ITERATE */
  39. #define ERR10_023 (ERRC_MSG+23)        /*  invalid statement in SELECT */
  40. #define ERR10_024 (ERRC_MSG+24)        /*  missing THEN clauses        */
  41. #define ERR10_025 (ERRC_MSG+25)        /*  missing OTHERWISE           */
  42. #define ERR10_026 (ERRC_MSG+26)        /*  missing or unexpected END   */
  43. #define ERR10_027 (ERRC_MSG+27)        /*  symbol mismatch on END      */
  44. #define ERR10_028 (ERRC_MSG+28)        /*  invalid DO syntax           */
  45. #define ERR10_029 (ERRC_MSG+29)        /*  incomplete DO/IF/SELECT     */
  46.  
  47. #define ERR10_030 (ERRC_MSG+30)        /*  label not found           */
  48. #define ERR10_031 (ERRC_MSG+31)        /*  symbol expected           */
  49. #define ERR10_032 (ERRC_MSG+32)        /*  string or symbol expected   */
  50. #define ERR10_033 (ERRC_MSG+33)        /*  invalid sub-keyword           */
  51. #define ERR10_034 (ERRC_MSG+34)        /*  required keyword missing    */
  52. #define ERR10_035 (ERRC_MSG+35)        /*  extraneous characters       */
  53. #define ERR10_036 (ERRC_MSG+36)        /*  sub-keyword conflict        */
  54. #define ERR10_037 (ERRC_MSG+37)        /*  invalid template           */
  55. #define ERR10_038 (ERRC_MSG+38)        /*  invalid TRACE request       */
  56. #define ERR10_039 (ERRC_MSG+39)        /*  uninitialized variable      */
  57.  
  58. #define ERR10_040 (ERRC_MSG+40)        /*  invalid variable name       */
  59. #define ERR10_041 (ERRC_MSG+41)        /*  invalid expression           */
  60. #define ERR10_042 (ERRC_MSG+42)        /*  unbalanced parentheses      */
  61. #define ERR10_043 (ERRC_MSG+43)        /*  nesting level exceeded      */
  62. #define ERR10_044 (ERRC_MSG+44)        /*  invalid expression result   */
  63. #define ERR10_045 (ERRC_MSG+45)        /*  expression required           */
  64. #define ERR10_046 (ERRC_MSG+46)        /*  boolean value not 0 or 1    */
  65. #define ERR10_047 (ERRC_MSG+47)        /*  arithmetic conversion error */
  66. #define ERR10_048 (ERRC_MSG+48)        /*  invalid operand           */
  67.  
  68. /*
  69.  * Return Codes for general use
  70.  */
  71. #define RC_OK      0L               /*  success               */
  72. #define RC_WARN   5L               /*  warning only           */
  73. #define RC_ERROR  10L               /*  something's wrong           */
  74. #define RC_FATAL  20L               /*  complete or severe failure  */
  75.  
  76. #endif
  77.